<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>VScode使用 | whoway</title>
    <meta name="description" content="Personal Blog Website">
    <link rel="icon" href="/images/photo.jpg">
  <link rel="manifest" href="/images/photo.jpg">
  <link rel="apple-touch-icon" href="/images/photo.jpg">
  <meta http-quiv="pragma" cotent="no-cache">
  <meta http-quiv="pragma" cotent="no-cache,must-revalidate">
  <meta http-quiv="expires" cotent="0">
    
    <link rel="preload" href="/assets/css/0.styles.0dbae9ec.css" as="style"><link rel="preload" href="/assets/js/app.c70e21ad.js" as="script"><link rel="preload" href="/assets/js/101.efd59f25.js" as="script"><link rel="prefetch" href="/assets/js/10.15222a53.js"><link rel="prefetch" href="/assets/js/100.7e0e5a86.js"><link rel="prefetch" href="/assets/js/102.dfbdc06c.js"><link rel="prefetch" href="/assets/js/103.d3ab2109.js"><link rel="prefetch" href="/assets/js/104.117957ef.js"><link rel="prefetch" href="/assets/js/105.046e8ff3.js"><link rel="prefetch" href="/assets/js/106.aebdc17d.js"><link rel="prefetch" href="/assets/js/107.248733c2.js"><link rel="prefetch" href="/assets/js/108.a2fecadc.js"><link rel="prefetch" href="/assets/js/109.35196857.js"><link rel="prefetch" href="/assets/js/11.770642f2.js"><link rel="prefetch" href="/assets/js/110.cf3d973c.js"><link rel="prefetch" href="/assets/js/111.f985889a.js"><link rel="prefetch" href="/assets/js/112.ad614f41.js"><link rel="prefetch" href="/assets/js/113.f666653c.js"><link rel="prefetch" href="/assets/js/114.c6c3f384.js"><link rel="prefetch" href="/assets/js/115.e51d3c2f.js"><link rel="prefetch" href="/assets/js/116.4f4b39f5.js"><link rel="prefetch" href="/assets/js/117.99352e11.js"><link rel="prefetch" href="/assets/js/118.c6ae6572.js"><link rel="prefetch" href="/assets/js/119.4ccbe778.js"><link rel="prefetch" href="/assets/js/12.042a92ff.js"><link rel="prefetch" href="/assets/js/120.edda1c4f.js"><link rel="prefetch" href="/assets/js/121.30a638ed.js"><link rel="prefetch" href="/assets/js/122.6efcefb1.js"><link rel="prefetch" href="/assets/js/123.91e6665b.js"><link rel="prefetch" href="/assets/js/124.f27e3d7e.js"><link rel="prefetch" href="/assets/js/125.c75712d5.js"><link rel="prefetch" href="/assets/js/126.ed756cce.js"><link rel="prefetch" href="/assets/js/127.2f06c74c.js"><link rel="prefetch" href="/assets/js/128.d5f6f30e.js"><link rel="prefetch" href="/assets/js/129.508b7eed.js"><link rel="prefetch" href="/assets/js/13.b5280c37.js"><link rel="prefetch" href="/assets/js/130.dc05f9aa.js"><link rel="prefetch" href="/assets/js/131.e0ba69b1.js"><link rel="prefetch" href="/assets/js/132.d79bcaa4.js"><link rel="prefetch" href="/assets/js/133.34acc01a.js"><link rel="prefetch" href="/assets/js/134.dabf64d5.js"><link rel="prefetch" href="/assets/js/135.ad90c915.js"><link rel="prefetch" href="/assets/js/136.dbb0074f.js"><link rel="prefetch" href="/assets/js/137.284ad365.js"><link rel="prefetch" href="/assets/js/138.a4b6856f.js"><link rel="prefetch" href="/assets/js/139.c9c1e20f.js"><link rel="prefetch" href="/assets/js/14.df02ba38.js"><link rel="prefetch" href="/assets/js/140.8b0a9269.js"><link rel="prefetch" href="/assets/js/141.9c7759c5.js"><link rel="prefetch" href="/assets/js/142.a4201a82.js"><link rel="prefetch" href="/assets/js/143.d7da6e8c.js"><link rel="prefetch" href="/assets/js/144.5e48e65d.js"><link rel="prefetch" href="/assets/js/145.a0e2633c.js"><link rel="prefetch" href="/assets/js/146.3c775f9b.js"><link rel="prefetch" href="/assets/js/147.22add89a.js"><link rel="prefetch" href="/assets/js/148.cfde1009.js"><link rel="prefetch" href="/assets/js/149.ffc835b5.js"><link rel="prefetch" href="/assets/js/15.fbdfc4ee.js"><link rel="prefetch" href="/assets/js/150.406c4b20.js"><link rel="prefetch" href="/assets/js/151.b2040eea.js"><link rel="prefetch" href="/assets/js/152.7bc65661.js"><link rel="prefetch" href="/assets/js/153.1d7c65e3.js"><link rel="prefetch" href="/assets/js/154.1309de49.js"><link rel="prefetch" href="/assets/js/155.81d3ee1f.js"><link rel="prefetch" href="/assets/js/156.154a4ef2.js"><link rel="prefetch" href="/assets/js/16.e5eb6147.js"><link rel="prefetch" href="/assets/js/17.57853c4a.js"><link rel="prefetch" href="/assets/js/18.cb9d7518.js"><link rel="prefetch" href="/assets/js/19.f354dc47.js"><link rel="prefetch" href="/assets/js/2.570d8a23.js"><link rel="prefetch" href="/assets/js/20.b5af7fad.js"><link rel="prefetch" href="/assets/js/21.0b1928fe.js"><link rel="prefetch" href="/assets/js/22.f78666de.js"><link rel="prefetch" href="/assets/js/23.29c3f366.js"><link rel="prefetch" href="/assets/js/24.6f596516.js"><link rel="prefetch" href="/assets/js/25.14067b60.js"><link rel="prefetch" href="/assets/js/26.74ba4989.js"><link rel="prefetch" href="/assets/js/27.13d60edd.js"><link rel="prefetch" href="/assets/js/28.9523cb32.js"><link rel="prefetch" href="/assets/js/29.8ec842e9.js"><link rel="prefetch" href="/assets/js/3.3fb3d2e0.js"><link rel="prefetch" href="/assets/js/30.805597a8.js"><link rel="prefetch" href="/assets/js/31.831b195d.js"><link rel="prefetch" href="/assets/js/32.063c672d.js"><link rel="prefetch" href="/assets/js/33.6d93fac3.js"><link rel="prefetch" href="/assets/js/34.56e8263c.js"><link rel="prefetch" href="/assets/js/35.dbe688bb.js"><link rel="prefetch" href="/assets/js/36.dc5af2c1.js"><link rel="prefetch" href="/assets/js/37.0a7494f6.js"><link rel="prefetch" href="/assets/js/38.fe4fc171.js"><link rel="prefetch" href="/assets/js/39.f5ed5e92.js"><link rel="prefetch" href="/assets/js/4.2c405ec8.js"><link rel="prefetch" href="/assets/js/40.fe7e2714.js"><link rel="prefetch" href="/assets/js/41.30b0811d.js"><link rel="prefetch" href="/assets/js/42.76f52d62.js"><link rel="prefetch" href="/assets/js/43.e7bb0817.js"><link rel="prefetch" href="/assets/js/44.ead0e883.js"><link rel="prefetch" href="/assets/js/45.235df046.js"><link rel="prefetch" href="/assets/js/46.5f09e829.js"><link rel="prefetch" href="/assets/js/47.67116354.js"><link rel="prefetch" href="/assets/js/48.31f34543.js"><link rel="prefetch" href="/assets/js/49.10b5ebba.js"><link rel="prefetch" href="/assets/js/5.6f47322c.js"><link rel="prefetch" href="/assets/js/50.c0f0b7f1.js"><link rel="prefetch" href="/assets/js/51.5143f3bf.js"><link rel="prefetch" href="/assets/js/52.eeddfd48.js"><link rel="prefetch" href="/assets/js/53.eb790db5.js"><link rel="prefetch" href="/assets/js/54.8fe5421c.js"><link rel="prefetch" href="/assets/js/55.d8f9004b.js"><link rel="prefetch" href="/assets/js/56.62ac9b92.js"><link rel="prefetch" href="/assets/js/57.a9caec0d.js"><link rel="prefetch" href="/assets/js/58.f93fc522.js"><link rel="prefetch" href="/assets/js/59.a81a03aa.js"><link rel="prefetch" href="/assets/js/6.8c2ea393.js"><link rel="prefetch" href="/assets/js/60.ab782775.js"><link rel="prefetch" href="/assets/js/61.6dd12daf.js"><link rel="prefetch" href="/assets/js/62.76f4b01f.js"><link rel="prefetch" href="/assets/js/63.6f8a4742.js"><link rel="prefetch" href="/assets/js/64.6f8bb1fa.js"><link rel="prefetch" href="/assets/js/65.4120a44b.js"><link rel="prefetch" href="/assets/js/66.360c2d2b.js"><link rel="prefetch" href="/assets/js/67.26f84d32.js"><link rel="prefetch" href="/assets/js/68.68f45e5e.js"><link rel="prefetch" href="/assets/js/69.e311eb56.js"><link rel="prefetch" href="/assets/js/7.6762b2d7.js"><link rel="prefetch" href="/assets/js/70.cea82674.js"><link rel="prefetch" href="/assets/js/71.783ddcf7.js"><link rel="prefetch" href="/assets/js/72.e5467385.js"><link rel="prefetch" href="/assets/js/73.b8fb681b.js"><link rel="prefetch" href="/assets/js/74.1bae37db.js"><link rel="prefetch" href="/assets/js/75.024387e5.js"><link rel="prefetch" href="/assets/js/76.a8e53010.js"><link rel="prefetch" href="/assets/js/77.8c55500a.js"><link rel="prefetch" href="/assets/js/78.7ce90bf5.js"><link rel="prefetch" href="/assets/js/79.ef71713f.js"><link rel="prefetch" href="/assets/js/8.788a6364.js"><link rel="prefetch" href="/assets/js/80.acad589d.js"><link rel="prefetch" href="/assets/js/81.02670d10.js"><link rel="prefetch" href="/assets/js/82.53b7b1ac.js"><link rel="prefetch" href="/assets/js/83.99eb8581.js"><link rel="prefetch" href="/assets/js/84.d1535ce3.js"><link rel="prefetch" href="/assets/js/85.fe2b7de9.js"><link rel="prefetch" href="/assets/js/86.41850272.js"><link rel="prefetch" href="/assets/js/87.1cdc6df9.js"><link rel="prefetch" href="/assets/js/88.01bf3461.js"><link rel="prefetch" href="/assets/js/89.17c69819.js"><link rel="prefetch" href="/assets/js/9.3813842d.js"><link rel="prefetch" href="/assets/js/90.f6ae7e35.js"><link rel="prefetch" href="/assets/js/91.507bc284.js"><link rel="prefetch" href="/assets/js/92.90551782.js"><link rel="prefetch" href="/assets/js/93.dc442d78.js"><link rel="prefetch" href="/assets/js/94.315f4e94.js"><link rel="prefetch" href="/assets/js/95.ccd6c6bf.js"><link rel="prefetch" href="/assets/js/96.0c6d89d0.js"><link rel="prefetch" href="/assets/js/97.1a9f10a9.js"><link rel="prefetch" href="/assets/js/98.43be3caa.js"><link rel="prefetch" href="/assets/js/99.54c8207b.js">
    <link rel="stylesheet" href="/assets/css/0.styles.0dbae9ec.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><!----> <span class="site-name">whoway</span></a> <div class="links" style="max-width:nullpx;"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">🎓Coding</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/00.Coding/TheBeautyOfProgramming/" class="nav-link">🔖编程之美题解</a></li><li class="dropdown-item"><!----> <a href="/00.Coding/CodeWarehouse/" class="nav-link">🔖代码意识流</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">🚀语言</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/01.Language/Overview/" class="nav-link">🔖概述</a></li><li class="dropdown-item"><!----> <a href="/01.Language/C/" class="nav-link">⭐️C</a></li><li class="dropdown-item"><!----> <a href="/01.Language/Cpp/" class="nav-link">🚀C++</a></li><li class="dropdown-item"><!----> <a href="/01.Language/Java/" class="nav-link">☕️Java</a></li><li class="dropdown-item"><!----> <a href="/01.Language/Python/" class="nav-link">🧩Python3</a></li></ul></div></div><div class="nav-item"><a href="/02.Hardware/" class="nav-link">✔️硬件基础</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">⭐️软件基础</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/03.Software/01.DataStructureAndAlgorithm/" class="nav-link">🐾数据结构和算法</a></li><li class="dropdown-item"><!----> <a href="/03.Software/02.OS/" class="nav-link">💻操作系统</a></li><li class="dropdown-item"><!----> <a href="/03.Software/03.Net/" class="nav-link">☁️计算机网络</a></li><li class="dropdown-item"><!----> <a href="/03.Software/04.SE/" class="nav-link">✅软件工程</a></li></ul></div></div><div class="nav-item"><a href="/04.Database/" class="nav-link">🎨数据库</a></div><div class="nav-item"><a href="/05.Engineer/" class="nav-link router-link-active">🔖学术/工程</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">⚙️工具</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/06.Tools/01.employment/" class="nav-link">🔖求职</a></li><li class="dropdown-item"><!----> <a href="/06.Tools/02.efficiency/" class="nav-link">🚀效能</a></li><li class="dropdown-item"><!----> <a href="/06.Tools/03.windows/" class="nav-link">⚙️Windows</a></li><li class="dropdown-item"><!----> <a href="/06.Tools/04.design/" class="nav-link">🧩设计</a></li><li class="dropdown-item"><!----> <a href="/06.Tools/05.linux/" class="nav-link">🐉Linux</a></li></ul></div></div><div class="nav-item"><a href="https://github.com/whoway" target="_blank" rel="noopener noreferrer" class="nav-link external">
  GitHub
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <div class="sidebar"><nav class="nav-links"><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">🎓Coding</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/00.Coding/TheBeautyOfProgramming/" class="nav-link">🔖编程之美题解</a></li><li class="dropdown-item"><!----> <a href="/00.Coding/CodeWarehouse/" class="nav-link">🔖代码意识流</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">🚀语言</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/01.Language/Overview/" class="nav-link">🔖概述</a></li><li class="dropdown-item"><!----> <a href="/01.Language/C/" class="nav-link">⭐️C</a></li><li class="dropdown-item"><!----> <a href="/01.Language/Cpp/" class="nav-link">🚀C++</a></li><li class="dropdown-item"><!----> <a href="/01.Language/Java/" class="nav-link">☕️Java</a></li><li class="dropdown-item"><!----> <a href="/01.Language/Python/" class="nav-link">🧩Python3</a></li></ul></div></div><div class="nav-item"><a href="/02.Hardware/" class="nav-link">✔️硬件基础</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">⭐️软件基础</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/03.Software/01.DataStructureAndAlgorithm/" class="nav-link">🐾数据结构和算法</a></li><li class="dropdown-item"><!----> <a href="/03.Software/02.OS/" class="nav-link">💻操作系统</a></li><li class="dropdown-item"><!----> <a href="/03.Software/03.Net/" class="nav-link">☁️计算机网络</a></li><li class="dropdown-item"><!----> <a href="/03.Software/04.SE/" class="nav-link">✅软件工程</a></li></ul></div></div><div class="nav-item"><a href="/04.Database/" class="nav-link">🎨数据库</a></div><div class="nav-item"><a href="/05.Engineer/" class="nav-link router-link-active">🔖学术/工程</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">⚙️工具</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/06.Tools/01.employment/" class="nav-link">🔖求职</a></li><li class="dropdown-item"><!----> <a href="/06.Tools/02.efficiency/" class="nav-link">🚀效能</a></li><li class="dropdown-item"><!----> <a href="/06.Tools/03.windows/" class="nav-link">⚙️Windows</a></li><li class="dropdown-item"><!----> <a href="/06.Tools/04.design/" class="nav-link">🧩设计</a></li><li class="dropdown-item"><!----> <a href="/06.Tools/05.linux/" class="nav-link">🐉Linux</a></li></ul></div></div><div class="nav-item"><a href="https://github.com/whoway" target="_blank" rel="noopener noreferrer" class="nav-link external">
  GitHub
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div> <!----></nav>  <ul class="sidebar-links"><li><div class="sidebar-group first"><p class="sidebar-heading open"><span>VScode使用</span> <!----></p> <ul class="sidebar-group-items"><li><a href="/05.Engineer/E7.VScode%E4%BD%BF%E7%94%A8.html#📑-目录" class="sidebar-link">📑 目录</a><ul class="sidebar-sub-headers"></ul></li><li><a href="/05.Engineer/E7.VScode%E4%BD%BF%E7%94%A8.html#🚀项目中使用的vscode技巧" class="sidebar-link">🚀项目中使用的VScode技巧</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/05.Engineer/E7.VScode%E4%BD%BF%E7%94%A8.html#_1-快捷键" class="sidebar-link">1.快捷键</a></li><li class="sidebar-sub-header"><a href="/05.Engineer/E7.VScode%E4%BD%BF%E7%94%A8.html#_2-vscode中观察到的细节" class="sidebar-link">2.VScode中观察到的细节</a></li><li class="sidebar-sub-header"><a href="/05.Engineer/E7.VScode%E4%BD%BF%E7%94%A8.html#_3-vscode-终端打开当前路径⭐️" class="sidebar-link">3.VScode 终端打开当前路径⭐️</a></li><li class="sidebar-sub-header"><a href="/05.Engineer/E7.VScode%E4%BD%BF%E7%94%A8.html#_4-解决vscode用code命令行，打开，自动关闭cmd窗口" class="sidebar-link">4.解决vscode用code命令行，打开，自动关闭cmd窗口</a></li><li class="sidebar-sub-header"><a href="/05.Engineer/E7.VScode%E4%BD%BF%E7%94%A8.html#_5-mac和windows的键盘区别" class="sidebar-link">5.Mac和Windows的键盘区别</a></li></ul></li><li><a href="/05.Engineer/E7.VScode%E4%BD%BF%E7%94%A8.html#开篇词-讲玩转编辑器，向高效能编程再进一步✔️" class="sidebar-link">开篇词.讲玩转编辑器，向高效能编程再进一步✔️</a><ul class="sidebar-sub-headers"></ul></li><li><a href="/05.Engineer/E7.VScode%E4%BD%BF%E7%94%A8.html#_01-学编辑器，到底应该学什么" class="sidebar-link">01.学编辑器，到底应该学什么</a><ul class="sidebar-sub-headers"></ul></li><li><a href="/05.Engineer/E7.VScode%E4%BD%BF%E7%94%A8.html#_02-vscode的why、how和what" class="sidebar-link">02.VSCode的Why、How和What</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/05.Engineer/E7.VScode%E4%BD%BF%E7%94%A8.html#什么叫工作流？" class="sidebar-link">什么叫工作流？</a></li></ul></li><li><a href="/05.Engineer/E7.VScode%E4%BD%BF%E7%94%A8.html#_03-如何快速上手-vscode" class="sidebar-link">03.如何快速上手 VSCode?</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/05.Engineer/E7.VScode%E4%BD%BF%E7%94%A8.html#命令面板" class="sidebar-link">命令面板</a></li><li class="sidebar-sub-header"><a href="/05.Engineer/E7.VScode%E4%BD%BF%E7%94%A8.html#快捷键" class="sidebar-link">快捷键</a></li></ul></li><li><a href="/05.Engineer/E7.VScode%E4%BD%BF%E7%94%A8.html#_04-如何做到双手不离键盘" class="sidebar-link">04.如何做到双手不离键盘</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/05.Engineer/E7.VScode%E4%BD%BF%E7%94%A8.html#⭐️vscode的ctrl-shift-e的快捷键和搜狗输入法冲突，记得解决掉搜狗输入法这个的快捷键" class="sidebar-link">⭐️VScode的Ctrl+shift+E的快捷键和搜狗输入法冲突，记得解决掉搜狗输入法这个的快捷键</a></li><li class="sidebar-sub-header"><a href="/05.Engineer/E7.VScode%E4%BD%BF%E7%94%A8.html#使用vscode连接远程服务器进行开发" class="sidebar-link">使用VScode连接远程服务器进行开发</a></li></ul></li><li><a href="/05.Engineer/E7.VScode%E4%BD%BF%E7%94%A8.html#_29-不错的插件推荐✔️" class="sidebar-link">29.不错的插件推荐✔️</a><ul class="sidebar-sub-headers"></ul></li><li><a href="/05.Engineer/E7.VScode%E4%BD%BF%E7%94%A8.html#结束语-讲学编辑器，究竟学了什么" class="sidebar-link">结束语.讲学编辑器，究竟学了什么</a><ul class="sidebar-sub-headers"></ul></li><li><a href="/05.Engineer/E7.VScode%E4%BD%BF%E7%94%A8.html#参考资料" class="sidebar-link">参考资料</a><ul class="sidebar-sub-headers"></ul></li></ul></div></li></ul> </div> <div class="page"> <div class="content"><h1 id="vscode使用"><a href="#vscode使用" class="header-anchor">#</a> VScode使用</h1> <div class="language-txt line-numbers-mode"><pre class="language-text"><code>&lt;font style=&quot;background:yellow&quot;&gt;
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><h2 id="📑-目录"><a href="#📑-目录" class="header-anchor">#</a> 📑 目录</h2> <p>[TOC]</p> <h2 id="🚀项目中使用的vscode技巧"><a href="#🚀项目中使用的vscode技巧" class="header-anchor">#</a> 🚀项目中使用的VScode技巧</h2> <h3 id="_1-快捷键"><a href="#_1-快捷键" class="header-anchor">#</a> 1.快捷键</h3> <blockquote><p>(Ctrl + K , Ctrl + S)就打开VScode自带的<strong>快捷键指南</strong></p></blockquote> <ul><li>用于解决可读性极差的代码「对于<strong>代码块</strong>的光标移动：<code>Ctrl+Shift+\</code>」⭐️</li> <li>命令面板：显示所有命令「Ctrl+shift+P」⭐️</li> <li>在当前文件夹下面，搜索某文件「Ctrl+P」⭐️</li> <li>在当前文件夹下面，搜索某文件里面包含的某字符「Ctrl+Shift+F」⭐️</li> <li>VSCode也提供了一种极为简单的式来支持行跳转，你只需要按下 “<font style="background:yellow;"><code>Ctrl + g</code></font>”「类似vim的<code>:num</code>」</li> <li>你知道了要删掉一行代码，你可以选中它，然后再按 Delete 键。</li> <li>不过还有一个快捷键， 那就是直接按下 “ Cmd + Shift + K ” (<strong>Windows 上是 “Ctrl + Shift + K”)</strong>，<strong>当前代码行</strong>就可以被删除了。</li> <li>选择VScode的主题颜色「Ctrl+K，Ctrl+T」theme，主题
<ul><li>缘由：平时开发用黑色，实验室组会展示用白色</li></ul></li></ul> <blockquote><p>源代码阅读：</p></blockquote> <ul><li>折叠代码「Ctrl+K，Ctrl+0」</li> <li>放大和缩小VScode上面的整体显示「<code>Ctrl</code>+<code>+</code>」和「<code>Ctrl</code>+<code>-</code>」
<ul><li>组会汇报使用</li></ul></li></ul> <h3 id="_2-vscode中观察到的细节"><a href="#_2-vscode中观察到的细节" class="header-anchor">#</a> 2.VScode中观察到的细节</h3> <ul><li>1.替代sz和rz中的下载，VScode选择某个文件，右键，有「下载」选项</li> <li>2.按住Ctrl，然后去点击VScode的终端的任何路径名/文件名，能直接打开「省时：文件搜索定位」</li> <li>3.在打开文件的时候，<strong>按住Alt+然后左击</strong>，会把该文件在侧边栏打开，这样就<strong>不会覆盖文件</strong></li></ul> <h3 id="_3-vscode-终端打开当前路径⭐️"><a href="#_3-vscode-终端打开当前路径⭐️" class="header-anchor">#</a> 3.VScode 终端打开当前路径⭐️</h3> <ul><li>使用VScode时，每次用到终端都非常的难受。因为每次打开时，默认的路径都是在 home 目录，而不是当前工作文件的位置。</li> <li>我们往往需要在当前目录执行程序。
<ul><li>依次选择： <strong><font style="background:yellow;">文件 - 首选项 - 键盘快捷方式</font></strong>「也可以用快捷键Ctrl + K , Ctrl + S」</li> <li>搜索 <font style="background:yellow;"><strong>openInTerminal</strong></font>，给它绑定一个快捷键即可。
<ul><li>「本来打算绑定右边的Ctrl+C然后Ctrl+D，意思是cd」，这样有个问题，Ctrl+C然后Ctrl+V就用不了了，所以，最后我改为了</li> <li>「<font style="background:yellow;">Alt+C然后Alt+D</font>」</li></ul></li></ul></li> <li>绑定后，只要前台打开着文件，按下快捷键后就会在此文件的目录打开终端</li></ul> <h3 id="_4-解决vscode用code命令行，打开，自动关闭cmd窗口"><a href="#_4-解决vscode用code命令行，打开，自动关闭cmd窗口" class="header-anchor">#</a> 4.解决vscode用<code>code</code>命令行，打开，自动关闭cmd窗口</h3> <ul><li>使用<code>everthing</code>搜索<code>code.exe</code>获取<code>code.exe</code>的路径，将他加到PATH环境变量中，这样就可以了</li></ul> <p><img src="https://cdn.jsdelivr.net/gh/HACV/picture/img/20211204100243.png" alt="image-20211204100241329"></p> <ul><li><code>sysdm.cpl</code>添加到「系统变量」的Path里面</li></ul> <p><img src="https://cdn.jsdelivr.net/gh/HACV/picture/img/20211204100557.png" alt="image-20211204100556351"></p> <ul><li>原理，就是下面的用户变量的Path被我覆盖了</li></ul> <p><img src="https://cdn.jsdelivr.net/gh/HACV/picture/img/20211204100846.png" alt="image-20211204100845204"></p> <h3 id="_5-mac和windows的键盘区别"><a href="#_5-mac和windows的键盘区别" class="header-anchor">#</a> 5.Mac和Windows的键盘区别</h3> <p>Mac键盘图标解释</p> <ul><li><p>(⇧)Shift</p></li> <li><p>(⌃)Control</p></li> <li><p>(⌥)Option</p></li> <li><p>(⌘)Command（Meta 键）</p></li></ul> <blockquote><p>在Mac 系统键盘上，meta 对应command 键(⌘)</p> <ul><li><p>在Windows 系统键盘meta 对应Windows 徽标键(⊞)</p></li> <li><p>meta，n.转换键（META KEY的简称）,adj.自指的</p></li></ul></blockquote> <h2 id="开篇词-讲玩转编辑器，向高效能编程再进一步✔️"><a href="#开篇词-讲玩转编辑器，向高效能编程再进一步✔️" class="header-anchor">#</a> 开篇词.讲玩转编辑器，向高效能编程再进一步✔️</h2> <h2 id="_01-学编辑器，到底应该学什么"><a href="#_01-学编辑器，到底应该学什么" class="header-anchor">#</a> 01.学编辑器，到底应该学什么</h2> <ul><li>Shift 键能用于控制文本选择的</li> <li>Ctrl 或者 Cmd 键能当做辅助键的</li> <li>Tab 是用于 在控件之间跳转的</li> <li>也就是说，如果编辑器在选择快捷键的时候使用了某些规则，那么就要坚定地贯 彻下去，否则就会给用户带来困扰。</li></ul> <p>VS Code 的做法是搭配组合辅助键 Ctrl、Alt 和 Meta 键，然后根据当前用户正在使用的组件来决定是 什么功能；Vim 则是运用了“模态”的概念，把输入文本信息，和光标移动、文本操作等分开为不同的模 态，不同模态各有一套自己的快捷键。大家都说 Vim 的学习曲线比较陡峭，一个很重要的原因就是“模 态”的概念实在是另辟蹊径。</p> <ul><li>meta键是mac上的，windows是win键</li></ul> <p><strong>VS code</strong>的快捷键还是很符合使用习惯的，上手很快，也不与系统冲突。在我用过的IDE和编辑器中， 比较奇葩的快捷键设置应该<strong>是jetBrains系列IDE</strong>：默认设置下，Ctrl＋Y键是删除行，而不是恢复上一步 操作；不熟悉的情况下就容易造成误删（幸好Ctrl＋Z是正常的），所以我觉得在快捷键设置上下功夫 确实很重要。 2018-09-13 01:49 作者回复 只要能够允许修改快捷键绑定，就还是可以的</p> <ul><li>右边编辑区选中文件时，左边的文件树会Focus到当前编辑的文件，无论是vscode还是基于vscode的 其它编辑器都这样！文件树这边跳来跳去展开文件夹带来烦恼，eclipse是可以做到的，vscode如何设 置？
<ul><li>2018-09-14 07:54 作者回复 你需要的是 explorer.autoReveal</li></ul></li></ul> <h2 id="_02-vscode的why、how和what"><a href="#_02-vscode的why、how和what" class="header-anchor">#</a> 02.VSCode的Why、How和What</h2> <h3 id="什么叫工作流？"><a href="#什么叫工作流？" class="header-anchor">#</a> 什么叫工作流？</h3> <p>首先，VS Code 的源代码以 <strong>MIT 协议</strong>开源。这不仅意味着<strong>大家能够免费获取到 VS Code 的核心代 码</strong>，更意味着社区能够基于 VS Code 的代码，开发自己的产品</p> <p>VS Code 自带了 TypeScript 和 Node.js 的支持，用户下载 VS Code 后，立刻就能 file:///D/geekTime/html/02讲VSCode的Why、How和What.html[2018/12/20 0:07:48] 够在书写 JavaScript 和 TypeScript 时获得智能提示，而且无需任何配置即可立即调试 Node.js代 码。VS Code 核心团队有 Node.js 高手，TypeScript 也是微软官方出品的，VS Code 能把对这两个语 言的支持做好，似乎并不是什么值得惊讶的事情。但是 VS Code 团队不可能精通所有语言，对于他们 不熟悉的语言，VS Code 该怎么支持呢？</p> <h2 id="_03-如何快速上手-vscode"><a href="#_03-如何快速上手-vscode" class="header-anchor">#</a> 03.如何快速上手 VSCode?</h2> <p>VS Code 有两个不同的发布渠道：</p> <ul><li>一个是我们经常使用的稳定版（Stable），每个月发布一个主版本；</li> <li>另外一个发布渠道叫做 Insiders，每周一到周五 UTC 时间早上6点从最新的代码发布一个版本，这也是 VS Code 团队在使用的版本，目标是可以第一时间用上自己新加的功能并及时发现问题。微软内部对 这个做法还有个专门的名词，叫做“吃自己的狗粮” (eat your own dog food)</li></ul> <h3 id="命令面板"><a href="#命令面板" class="header-anchor">#</a> 命令面板</h3> <p>首先来看命令面板，它是 VS Code 快捷键的主要交互界面，你可以通过 F1 或者“Cmd+Shift+P
”(Windows 上是 “Ctrl+Shift+P”) 打开。</p> <ul><li>如果你的 VS Code 是简体中文版，那么你可以在命令面 板里使用中文或者英文来搜索命令。VS Code 的绝大多数命令都可以在命令面板里搜到，所以<strong>熟练使 用命令面板，你就可以摆脱鼠标，完全通过键盘操作来完成全部编码工作</strong></li></ul> <h3 id="快捷键"><a href="#快捷键" class="header-anchor">#</a> 快捷键</h3> <ul><li><p>文件资源管理器 Ctrl+ Shift+E</p></li> <li><p>跨文件搜索 Ctrl+ Shift+F</p></li> <li><p>源代码管理 Ctrl+ Shift+G</p></li> <li><p>启动和调试Ctr1+ Shift+D</p></li> <li><p>管理扩展Ctrl+ Shift+X</p></li></ul> <p>查找并运行所有命令Ctrl+Shift+P</p> <p>查看错误和警告Ctrl+ Shift+M</p> <p>如果你是 Windows用户，安装并重启系统后，你就可以在命令行中使用 <strong>code</strong> 或者 codeinsiders了，如果你希望立刻而不是等待重启后使用，可以将 VS Code 的安装目录添加到系统环境 变量 PATH中， Windows 64 位下的 VS Code 安装路径是 C:\Program FIles\Microsoft VS Code下。</p> <h2 id="_04-如何做到双手不离键盘"><a href="#_04-如何做到双手不离键盘" class="header-anchor">#</a> 04.如何做到双手不离键盘</h2> <ul><li>针对单词的光标移动。Ctrl+左边或者右边。。你同时按住 Option 和方向键，那么光标移动的颗粒度就变成了单词</li> <li>把光标移动到行首或者行末：win+Home/End 键</li> <li>对于<strong>代码块</strong>的光标移动：Ctrl+Shift+\</li> <li>是移动到文档的第一行或者最后一行：Ctrl + Home/End 键</li></ul> <p>掌握了上面的快捷键之后，你还可以非常轻松地掌握文本选择的操作。因为对于基于单词、行 和整个文档的光标操作，你只需要多按一个 Shift 键，就可以在移动光标的同时选中其中的文 本。</p> <p>shift+Ctrl+Left或者Right。：光标到 function 单词开头之间的所有字符全部选中</p> <p>代码块的文本选择， VS Code 默认没有绑定快捷键：</p> <blockquote><p>. 删除操作</p></blockquote> <ul><li>比如你想把当前行中光标之前的文本全部删除，就可以先选中这段文本（Windows/Linux: Home + Shift，macOS: Cmd + Left + Shift )，然后再按删除键</li> <li>假设你把光标放在第二行代码的中间位置，然后按下 Cmd 和 Backspace（MacOS上就是 “fn + delete”的组合，Windows 上未绑定快捷键，可以打开命令面板运行“删除右侧所有 内容”），就能够把第二行代码光标后（右侧）的字符全部删掉</li></ul> <h3 id="⭐️vscode的ctrl-shift-e的快捷键和搜狗输入法冲突，记得解决掉搜狗输入法这个的快捷键"><a href="#⭐️vscode的ctrl-shift-e的快捷键和搜狗输入法冲突，记得解决掉搜狗输入法这个的快捷键" class="header-anchor">#</a> ⭐️VScode的Ctrl+shift+E的快捷键和搜狗输入法冲突，记得解决掉搜狗输入法这个的快捷键</h3> <ul><li>Ctrl+shift+E</li> <li>Ctrl+shift+G都冲突</li></ul> <h3 id="使用vscode连接远程服务器进行开发"><a href="#使用vscode连接远程服务器进行开发" class="header-anchor">#</a> 使用VScode连接远程服务器进行开发</h3> <ul><li>参考资料：<a href="https://zhuanlan.zhihu.com/p/141205262" target="_blank" rel="noopener noreferrer">使用VScode连接远程服务器进行开发<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li> <li>找到能够不用公私钥而是输密码的办法了</li> <li>其它的教程都提到要将公私钥分别放在远程服务器和本地电脑上</li></ul> <h2 id="_29-不错的插件推荐✔️"><a href="#_29-不错的插件推荐✔️" class="header-anchor">#</a> 29.不错的插件推荐✔️</h2> <p>今天我要介绍的是：</p> <ul><li>能够在某些领域大幅度提高VS Code使用效率和体验的工具</li> <li>能够取代 VS Code原有功能的工具</li> <li>对插件 API 的使用别出心裁的工具</li></ul> <h4 id="_1-vim⭐️"><a href="#_1-vim⭐️" class="header-anchor">#</a> 1.Vim⭐️</h4> <ul><li>不过 Vim 插件并不只有一个，下载量最大的 VSCodeVim⭐️「<font style="background:yellow;">这个插件，我用过</font>」，它 对 Vim keybings 的覆盖程度非常高。</li> <li>另一个非常受大家欢迎的就是amVim，它的性能也非常不错。</li></ul> <h4 id="_2-rainbow-brackets⭐️"><a href="#_2-rainbow-brackets⭐️" class="header-anchor">#</a> 2.Rainbow Brackets⭐️</h4> <ul><li>不管你是不是写函数式语言，当<strong>你的代码中有比较多的花括号时</strong>，要保证它们对称可以说是非常困难 了。</li> <li>Rainbow Brackets这个插件，<strong>为同一对花括号指定一个单独的配色</strong>，这样你就能够轻松地一眼看出 花括号的配对了</li></ul> <h4 id="_3-indent-rainbow"><a href="#_3-indent-rainbow" class="header-anchor">#</a> 3.Indent Rainbow</h4> <ul><li>而 Indent Rainbow则是为你的<strong>代码缩进提供颜色上的提示</strong>：</li></ul> <h2 id="结束语-讲学编辑器，究竟学了什么"><a href="#结束语-讲学编辑器，究竟学了什么" class="header-anchor">#</a> 结束语.讲学编辑器，究竟学了什么</h2> <h2 id="参考资料"><a href="#参考资料" class="header-anchor">#</a> 参考资料</h2> <ul><li>极客时间，玩转VS Code</li> <li>参考资料：<a href="https://www.jianshu.com/p/e3cae3b1dcbc" target="_blank" rel="noopener noreferrer">Mac键盘对应win键盘布局<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div> <div class="page-edit"><!----> <!----></div> <!----> </div> <!----></div></div>
    <script src="/assets/js/app.c70e21ad.js" defer></script><script src="/assets/js/101.efd59f25.js" defer></script>
  </body>
</html>
